# Contributor: Johannes Heimansberg <git@jhe.dedyn.io>
# Contributor: Daniel Hejduk <danielhejduk@disroot.org>
# Maintainer: Daniel Hejduk <danielhejduk@disroot.org>
pkgname=pfetch
pkgver=1.6.0
pkgrel=0
pkgdesc="System information tool written in POSIX sh"
url="https://github.com/Un1q32/pfetch"
arch="noarch"
license="MIT"
subpackages="$pkgname-doc"
source="$pkgname-$pkgver.tar.gz::https://github.com/Un1q32/pfetch/archive/$pkgver.tar.gz"

check() {
	./pfetch # Run the program
}

package() {
	install -Dm755 pfetch "$pkgdir"/usr/bin/pfetch
	install -Dm644 README.md -t "$pkgdir/usr/share/doc/$pkgname/"
	install -Dm644 LICENSE -t "$pkgdir/usr/share/licenses/$pkgname/"
	install -Dm644 pfetch.1 -t "$pkgdir/usr/share/man/man1/"
}

sha512sums="
6b9b925f64367d94598372c3601ae807b9ded0f530983d6a72839f0a9fc510f13ea64ef8be7b71011eb28eeaffd004e1345ed21c4f641aef696438e4aa438b49  pfetch-1.6.0.tar.gz
"
